

import pd.datastore as db





class Employee(db.Model):
    name = db.StringProperty(required=True)
    salary = db.IntegerProperty()
    s = db.FloatProperty()


e = Employee(name="abc2", salary = 5)
e.s = 2
e.put()

print


d = Employee()
d.name = 'PD2'
d.r = 1.111
d.put()

print



k1 = db.Key('Employee', name='abc2')

'''
rs = db.get(k1)
for r in rs:
    print r

getD = rs[0]

ng = Employee(**getD)
ng.r = 1
del ng.r
del ng.salary

ng.put()

#ng.drop()
'''

#k2 = db.Key('Employee', name='abc2')
#db.delete(k2)

print
print '-- entries --'
k0 = db.Key('Employee')
rs = db.get(k0)
for r in rs:
    print r

db.delete(k0)